<?php
namespace Backend\View\Helper;

use Zend\View\Helper\AbstractHelper;

class ActionNameHelper extends AbstractHelper
{

	protected $routeMatch;

	public function __construct($routeMatch)
	{
		$this->routeMatch = $routeMatch;
	}

	public function __invoke()
	{
		if ($this->routeMatch) {
			
			return strtoupper( $this->routeMatch->getParam('action', 'index') );
		}
	}
}